import request from '@/utils/request'
//项目同步SyncProject
export function GetSyncProject() {
    return request({
        url: '/Project/SyncProject',
        method: 'get'
    })
}
//查询项目任务
export function GetList(params) {
    return request({
        url: '/ProjectTask/list',
        method: 'get',
        params: params
    })
}
//项目下拉列表
export function GetProjectSelect(params) {
    return request({
        url: '/Project/ProjectSelect',
        method: 'get',
        params: params
    })
}
//专业下拉列表
export function GetMajorSelect(params) {
    return request({
        url: '/Project/MajorSelect',
        method: 'get',
        params: params
    })
}
//添加任务
export function AddTask(data) {
    return request({
        url: '/ProjectTask/AddTask',
        method: 'post',
        data
    })
}

//修改任务
export function UpdateTask(data) {
    return request({
        url: '/ProjectTask/UpdateTask',
        method: 'put',
        data
    })
}
/**
 * 删除项目任务
 * @param {数组Ids} data 
 * @returns 
 */
export function DeleteTask(data) {
    return request({
        url: '/ProjectTask/DeleteTask',
        method: 'delete',
        data
    })
}